package org.indi.yudidi.java;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

/**
 * Created by didi on 12/07/2018.
 */
public class ReadPropertiesInThridParty {
    public static void main(String[] args) {
        try {
            Enumeration<URL> configs = ClassLoader.getSystemResources("db2.properties");
//            Enumeration<URL> configs = ClassLoader.getSystemResources("*.class");
            while (configs.hasMoreElements()){
                System.out.println(configs.nextElement());
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
